import React, { Component } from 'react';
import { connect } from 'react-redux';

class Confirmation extends Component {
    render() {
        const {claimNumber} = this.props;
        return (
            <div>
                <h2>Confirmation</h2>
                <div>Claim number: {claimNumber}</div>
            </div>
        );
    }
}

const mapStateToProps = (state) => {
  return {
    claimNumber: state.lossDetailReducer.claimNumber
  }
}

export default connect(
    mapStateToProps,
    null
)(Confirmation);

